# Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
# Contributor: Harry Jeffery <harry@exec64.co.uk>

pkgname=imv
pkgver=4.4.0
pkgrel=1
pkgdesc='Image viewer for Wayland and X11'
url='https://sr.ht/~exec64/imv/'
arch=(loong64 x86_64)
license=(GPL)
depends=(freeimage glu libheif libinih libnsgif librsvg libxkbcommon libxkbcommon-x11 pango)
makedepends=(asciidoc cmocka meson)
conflicts=(renameutils)
source=("$pkgname-$pkgver.tar.gz::https://git.sr.ht/~exec64/$pkgname/archive/v$pkgver.tar.gz")
b2sums=('c598bb270ed57562f1c1b9a56f42676a7c8390c976ed74405228da572b000a85bf69e51f1bbfa6d554a481debc092995fe5222ba1e8b0b029b72395a8b8f329b')

build() {
  arch-meson build $pkgname-v$pkgver
  ninja -C build
}

package() {
  DESTDIR="$pkgdir" ninja -C build install
}
